Skip to content

fix: revert to_email/to_name EmailJS stopgap - #7

Merged
dommango merged 2 commits into
mainfrom
fix/revert-emailjs-stopgap
Sep 1, 2026
Merged

fix: revert to_email/to_name EmailJS stopgap#7
dommango merged 2 commits into
mainfrom
fix/revert-emailjs-stopgap

Conversation

@dommango

@dommango dommango commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Summary

Reverts commit 31acb29 now that the underlying issue is fixed at the source: the EmailJS template's "To email" field is hard-coded to Dom's address (dashboard change, confirmed done).

That commit was a same-day stopgap after #4 — removing to_name/to_email had made every contact-form send 422 with "recipients address is empty" because the template still expected {{to_email}}. Restoring those params routed mail to the sender instead of Dom until the template could be fixed properly. With the template now hard-coded, the params are dead weight (the template's fixed value wins over anything passed in send()), so this cleans them back out per the plan's original intent.

Test plan

  • npx tsc --noEmit clean
  • npm test -- --run — 27 unit tests pass
  • npm run build succeeds
  • Diffed against pre-stopgap lib/services/emailjs.ts — matches exactly
  • No contact-form e2e exists in this repo to exercise the live send path; the two pre-existing TravelMap.tsx lint errors seen in npm run lint are unrelated and already fixed on the separate feat/travel-scrubber-touch branch (not yet merged), not introduced here

🤖 Generated with Claude Code

https://claude.ai/code/session_01TUH1L7Q2FfGYa8dS7Lqvtz

Audit ranks changes by value to visitors and records four verified P0s:
contact form unconfigured in the Pages build, Substack 403 from Actions
hiding the Writing section, a keyword-matcher assistant, and the default
404 for pre-redesign URLs. Each plan in docs/plans/ is self-contained.
@dommango
dommango merged commit 724cc4e into main Sep 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant